package haida.pym_system.utils;

import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * Time
 *
 * @Description:
 * @Author: HongJie
 * @CreateTime: 2020-05-30
 */
@Component
public class Time {
	public String getCurrentTime()
	{
		Date date = new Date();
		SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		System.out.println(dateFormat.format(date));
		return dateFormat.format(date);
	}

}
